package com.basker.pisces.core.query;

import com.basker.pisces.core.query.meta.FieldDesc;

/**
 * 分组字段
 *
 * @author hangwen
 */
public class GroupField {
    private String fieldId;

    public GroupField() {

    }

    /**
     * 具体指定字段id
     *
     * @param fieldId
     */
    public GroupField(String fieldId) {
        this.fieldId = fieldId;
    }

    /**
     * 字段Id,关联{@link FieldDesc#getId()}
     *
     * @return
     */
    public String getFieldId() {
        return fieldId;
    }

    public void setFieldId(String fieldId) {
        this.fieldId = fieldId;
    }

    @Override
    public String toString() {
        return this.fieldId;
    }
}
